# -*- coding: utf-8 -*-
# @Time     : 2021/12/4 20:06
# @Author   : wljess
# @File     : __solts__测试.py
# @Describe : 
# @Software : PyCharm
from memory_profiler import profile


class MyClass:

    # 测试的时候可将本行注释掉
    # __slots__ = ('x', 'y')

    def __init__(self, x, y):
        self.x = x
        self.y = y


@profile
def main():
    f = [MyClass(i, i*2) for i in range(100000)]


if __name__ == '__main__':
    main()

